package com.example.demo.entity.responseJson;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @author : 洪俊新
 * @date : 2021/3/11 20:27
 * @description:
 */
@ApiModel("二级评论返回Json类")
public class TwoLevelCommentRes {
    /**
     *主键
     * 评论id
     * isnull 1
     */
    @ApiModelProperty(value="评论id",position=1)
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 评论人userId
     * isnull 0
     */        @ApiModelProperty(value="评论人userId",position=2)
    private String userId;
    /**
     * 评论人名称
     * isnull 0
     */        @ApiModelProperty(value="评论人名称",position=3)
    private String userName;
    /**
     * 评论的书籍id
     * isnull 0
     */        @ApiModelProperty(value="评论的书籍id",position=4)
    private String bookId;
    /**
     * 评论的书籍名称
     * isnull 0
     */        @ApiModelProperty(value="评论的书籍名称",position=5)
    private String bookName;
    /**
     * 父评论id
     * isnull 0
     */        @ApiModelProperty(value="父评论id",position=6)
    private String parentCommentId;
    /**
     * 父评论的用户id
     * isnull 0
     */        @ApiModelProperty(value="父评论的用户id",position=7)
    private String parentCommentUserId;
    /**
     * 被回复的评论id
     * isnull 0
     */        @ApiModelProperty(value="被回复的评论id", position=8)
    private String replyCommentId;
    /**
     * 被回复的评论用户id
     * isnull 0
     */        @ApiModelProperty(value="被回复的评论用户id",position=9)
    private String replyCommentUserId;
    /**
     * 被回复的评论用户昵称
     * isnull 0
     */        @ApiModelProperty(value="被回复的评论用户昵称",position=9)
    private String replyCommentUsername;
    /**
     * 评论等级[ 1 一级评论 默认 ，2 二级评论]
     * isnull 0
     */        @ApiModelProperty(value="评论等级[ 1 一级评论 默认 ，2 二级评论]",position=10)
    private Integer commentLevel;
    /**
     * 评论的内容
     * isnull 0
     */        @ApiModelProperty(value="评论的内容", position=11)
    private String content;
    /**
     * 状态 (1 有效，0 逻辑删除)
     * isnull 0
     */        @ApiModelProperty(value="状态 (1 有效，0 逻辑删除)",position=12)
    private Integer status;
    /**
     * 点赞数
     * isnull 0
     */        @ApiModelProperty(value="点赞数",position=13)
    private Integer praiseNum;
    /**
     * 创建时间
     * isnull 0
     */        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value="创建时间",position=13)
    private LocalDateTime createTime;

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getBookId() {
        return bookId;
    }

    public void setBookId(String bookId) {
        this.bookId = bookId;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getParentCommentId() {
        return parentCommentId;
    }

    public void setParentCommentId(String parentCommentId) {
        this.parentCommentId = parentCommentId;
    }

    public String getParentCommentUserId() {
        return parentCommentUserId;
    }

    public void setParentCommentUserId(String parentCommentUserId) {
        this.parentCommentUserId = parentCommentUserId;
    }

    public String getReplyCommentId() {
        return replyCommentId;
    }

    public void setReplyCommentId(String replyCommentId) {
        this.replyCommentId = replyCommentId;
    }

    public String getReplyCommentUserId() {
        return replyCommentUserId;
    }

    public void setReplyCommentUserId(String replyCommentUserId) {
        this.replyCommentUserId = replyCommentUserId;
    }

    public String getReplyCommentUsername() {
        return replyCommentUsername;
    }

    public void setReplyCommentUsername(String replyCommentUsername) {
        this.replyCommentUsername = replyCommentUsername;
    }

    public Integer getCommentLevel() {
        return commentLevel;
    }

    public void setCommentLevel(Integer commentLevel) {
        this.commentLevel = commentLevel;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getPraiseNum() {
        return praiseNum;
    }

    public void setPraiseNum(Integer praiseNum) {
        this.praiseNum = praiseNum;
    }

    @Override
    public String toString() {
        return "TwoLevelCommentRes{" +
                "id='" + id + '\'' +
                ", userId='" + userId + '\'' +
                ", userName='" + userName + '\'' +
                ", bookId='" + bookId + '\'' +
                ", bookName='" + bookName + '\'' +
                ", parentCommentId='" + parentCommentId + '\'' +
                ", parentCommentUserId='" + parentCommentUserId + '\'' +
                ", replyCommentId='" + replyCommentId + '\'' +
                ", replyCommentUserId='" + replyCommentUserId + '\'' +
                ", replyCommentUsername='" + replyCommentUsername + '\'' +
                ", commentLevel=" + commentLevel +
                ", content='" + content + '\'' +
                ", status=" + status +
                ", praiseNum=" + praiseNum +
                ", createTime=" + createTime +
                '}';
    }
}
